<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<table width="100%" height="80%">
	<tr >
		<td width="13%"  class='tabla_th1'>Cliente: <s:property value="cod_cliente" /> </td>
		<td width="87%" class='tabla_celda1'>
		  <s:set name="valx" ><s:property value="auto_v" /></s:set>
		  <s:set name="cod_cli" ><s:property value="cod_cliente" /></s:set>
		  <s:if test="%{#valx=='SI'}">
		        <s:url id="car_auto_v" value="cargar_cliente.action"  escapeAmp ="false" >
		            <s:param name="auto_v" value="SI" />
		            <s:param name="cod_cliente" value="%{cod_cli}" />
		        </s:url> 
		    </s:if> 
		    <s:else>
			  <s:form action="cargar_cliente.action" theme="simple" cssClass='formulariop' >
				  <sj:autocompleter id="clientes" name="cod_cliente" value="-1"
					 list="%{lst_clientes}" selectBox="true" 
					 targets="carga_cliente" indicator="indicator_pros"
					 cssClass='caja_autc' resizable='true' />
				     <sj:submit cssClass="boton_sia1" targets="carga_cliente" indicator="indicator_pros" button="true" value="Cargar" />
					 <img id="indicator_pros" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /> 
			  </s:form>
		  </s:else>	
		</td>
	</tr>
	<tr>
		<td colspan='2'>
		   <s:if test="%{#valx=='SI'}">
			   <sj:div id='carga_cliente' href="%{car_auto_v}" indicator="indicator_pros_v1"  class="result ui-widget-content ui-corner-all"  >
      			  <center><img id="indicator_pros_v1" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /></center>
    		   </sj:div>	
    	   </s:if> 
		   <s:else>	
			   <div id="carga_cliente" class="result ui-widget-content ui-corner-all">
			   
			   </div>
		   </s:else>	
		</td>
	</tr>
</table>
</body>
</html>